<?php

class Video extends AppModel {
  public $name = 'Video';
  public $belongsTo = array('Company'=>array(
      'className'=> 'Company',
      'foreignKey'=>'company_id',
      'type' =>'inner'
 ));

  public $validate = array(
      'Video.url' => array(
          'name' => 'notEmpty',
          'message'=>'Url is required'
      ),
      'Video.company_id' => array(
          'name' => 'notEmpty',
          'message'=>'Company is required'
      )
  );
   //http://book.cakephp.org/1.3/view/1042/belongsTo
  
}

?>
